rm -rf bazel
unzip bazel-*.zip -d bazel
cd bazel
env EXTRA_BAZEL_ARGS="--host_javabase=@local_jdk//:jdk" bash ./compile.sh
cd output
bazel_path='bazel/output'
if [[ -z $(cat ~/.bashrc |grep ${bazel_path}) ]];then
    echo "set BAZELPATH"
    bazel_path=$(pwd)
    echo "export PATH=${bazel_path}:$PATH" >> ~/.bashrc
    source ~/.bashrc
fi
cd ../../